package com.chenfan.mcn.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.LiveStarSettlementDetail;
import com.chenfan.mcn.model.dto.LiveStarSettlementDetailQueryDTO;
import com.chenfan.mcn.model.vo.LiveStarSettlementCommodityVO;
import com.chenfan.mcn.model.vo.LiveStarSettlementPaidSummaryVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 直播红人结算单明细表 Mapper 接口
 * </p>
 *
 * @author wulg
 * @since 2023-03-21
 */
public interface LiveStarSettlementDetailMapper extends EnhancedBaseMapper<LiveStarSettlementDetail> {

    /**
     *分页查询
     * @param page
     * @param queryDTO
     * @return
     */
    Page<LiveStarSettlementCommodityVO> getDetailPage(Page<LiveStarSettlementCommodityVO> page, @Param("dto") LiveStarSettlementDetailQueryDTO queryDTO);

    /**
     * 汇总
     * @param settlementId
     * @return
     */
    LiveStarSettlementPaidSummaryVO paidSummary(Long settlementId);
}
